﻿@model ModelStateDictionary

@if(!Model.IsValid)
{
<div class="alert alert-error">
    <a class="close" data-dismiss="alert">×</a>
    <strong>Oh snap!</strong>
    <ul>    
    @foreach (KeyValuePair<string, ModelState> keyValuePair in Model)
    {
        foreach(ModelError modelError in keyValuePair.Value.Errors){
            <li>@modelError.ErrorMessage</li>
        }
    }
    </ul>
</div>
}